#FROM node:10.15.0
#COPY package.json yarn.lock ./
#RUN yarn
#COPY . ./
#RUN yarn build

FROM nginx:latest
RUN rm /etc/nginx/conf.d/default.conf
COPY docker/default.conf /etc/nginx/conf.d/default.conf
COPY build /usr/share/nginx/html
#EXPOSE 80
#ENTRYPOINT ["/bin/sh", "-c" , "echo 172.16.0.236 test.boss.api.loong.ph  >> /etc/hosts && nginx" ]
#CMD ["nginx", "-g", "daemon off;"]
CMD ["/bin/bash", "-c", "echo 172.16.0.236 test.boss.api.loong.ph  >> /etc/hosts && echo 'ok nginx' && nginx '-g daemon off;'"]
#CMD ["/bin/bash", "-c", "echo 172.16.0.236 test.boss.api.loong.ph  >> /etc/hosts && echo 'ok nginx'", "nginx", "-g", "daemon off;"]
